package com.myapp.struts.menu;

import java.util.ArrayList;

public class MenuRead extends IReader {

    @Override
    public ArrayList<FoodItems> ReadMenu(String CountryCode) {
        if (CountryCode.equals(Constants.GREAT_BRITAN)) {
            XMLToJava a = new XMLToJava();
            return a.ReadMenu(CountryCode);
        } else if (CountryCode.equals(Constants.US)) {
            JsonToJava b = new JsonToJava();
            return b.ReadMenu(CountryCode);
        } else {
            return null;
        }

    }
}
